<!DOCTYPE html>
<html>
<head>
<title>personMan.html</title>

<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<link rel="stylesheet" type="text/css" href="css/pubStyle.css">
<link rel="stylesheet" type="text/css" href="css/test.css">
<style type="text/css">
<!--
body {
	background-color: #F7F7F7;
	margin: 0px;
}
-->
</style>

<script type="text/javascript" src="js/provincelink.js"></script>
<script type="text/javascript" src="js/cookie_util.js"></script>
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
<script type="text/javascript" src="js/sofa.js"></script>
<script type="text/javascript" src="js/order.js"></script>
<script type="text/javascript">
    var acctId = getCookie("uid");
    if (acctId == null) {
        window.location.href = "index.html";
    }
    var realName = getCookie("realName");
    var userType = getCookie("userType");
    //查询所有订单信息
    qryAllOrder(acctId,userType);
    $(function(){
        $("#acctId").html(realName);
        logOut();//退出登录功能
        showDiv("queryallorder");
        if("1"==userType){//沙客不显示管理沙发界面
            $("#sofaManager").hide();
        }
        $("#userId").val(acctId);
        $("#realName").val(realName);
        //修改个人信息
        $("#m_perinfo").click(function(){
            $(".p_tip").hide();
            $(".p_chk").show();
            var certNum = $("#certNum").val().trim();
            var sex = $("#sex").val().trim();
            var linkTel = $("#linkTelModify").val().trim();
            var mail = $("#mailModify").val().trim();
            
            if(""==certNum || null==certNum){
                certNum="null";
            }else if (checkIsEmpty(certNum, "#tip_certNum", "#chk_certNum",18, 18)) {
                return;
            }
            
            if(""==linkTel || null==linkTel){
                linkTel="null";
            }else if (checkIsEmpty(linkTel, "#tip_linkTel", "#chk_linkTel",7,20)) {
                return;
            }
            
            if(""==mail || null==mail){
                mail="null";
            }else if (checkIsEmpty(mail, "#tip_mail", "#chk_mail",7,15)) {
                return;
            }
            $.ajax({
                url:"/SofaGuest/login/modifyUserInfo.do",
                type:"post",
                data:{"userId":acctId,"certNum":certNum,
                    "sex":sex,"linkTel":linkTel,"mail":mail,"pwd":"null"},
                dataType:"json",
                success:function(result){
                    alert(result.detial);
                },
                error:function(){
                    alert("系统异常,请稍后重试");
                }
            });
        });
        
        //修改密码
        $("#m_pwd").click(function(){
            if (acctId == null) {
                alert("登录状态已失效,请重新登录");
                window.location.href = "index.html";
            }
            $(".p_tip").hide();
            $(".p_chk").show();
            $("#tip_pwd2").text("请再次输入密码");
            var oldPwd = $("#opwd").val().trim();
            var pwd1 = $("#pwd1").val().trim();
            var pwd2 = $("#pwd2").val().trim();
            
            if (checkIsEmpty(oldPwd, "#tip_opwd", "#chk_opwd",6)) {
                return;
            }
            if(checkIsEmpty(pwd1, "#tip_pwd1", "#chk_pwd1",6)){
                return;
            }
            if(checkIsEmpty(pwd2, "#tip_pwd2", "#chk_pwd2",6)){
                return;
            }
            if(pwd1 != (pwd2)){
                $("#tip_pwd2").text("两次输入的密码不一致,请确认!");
                checkIsEmpty("", "#tip_pwd2", "#chk_pwd2");
                return;
            }
            $.ajax({
                url:"/SofaGuest/login/modifyPwd.do",
                type:"post",
                data:{"userId":acctId,"oldPwd":oldPwd,"newPwd":pwd1},
                dataType:"json",
                success:function(result){
                    alert(result.detial);
                    if("0000"==result.status){
                        delCookie("uid");
                        delCookie("userType");
                        delCookie("realName");
                        window.location.href = "index.html"; // 重定向到登录页面
                    }
                }
            });
            
        });
        
        //评论
        $("#comcommit").click(function(){
            var orderId = getCookie("orderId");
            var msg = $("#content").val();
            $.ajax({
                url:"/SofaGuest/order/commitOrder.do",
                type:"post",
                data:{"msg":msg,"orderId":orderId},
                dataType:"json",
                success:function(result){
                    cancel_write();
                    alert(result.detial);
                    getAllOrder();
                },
                error:function(){
                    alert("评论失败,请稍后重试");
                }
            });
        });
        
    });
    
    // 显示div
    function showDiv(divId){
        $(".canShow").hide();
        $("#"+divId+"").show();
    }
    
    //查看沙发
    function qrySofaByHostId(){
        if (acctId == null) {
            window.location.href = "index.html";
        }
        showDiv("querysofa");
        $("#sofatablebody").html("");
        $.ajax({
            url:"/SofaGuest/sofa/qrySofaByHostId.do",
            type:"post",
            data:{"hostId":acctId},
            dataType:"json",
            success:function(result){
                if("0000"==result.status){
                    var sofas = result.data;
                    for(var i=0;i<sofas.length;i++){
                        var sofaId = sofas[i].sofa_id;
                        var sofaAddress = sofas[i].sofa_address;
                        var maxPerson = sofas[i].person_num;
                        var useSex = sofas[i].use_sex;
                        var age = sofas[i].min_age+"-"+sofas[i].max_age;
                        var canUseTag = sofas[i].can_use_tag;
                        var validFlag = sofas[i].valid_flag;
                        var unuesTime = sofas[i].unuse_time;
                        if("1"==validFlag){
                            validFlag="未失效";
                            unuesTime="";
                        }else if ("0"==validFlag){
                            validFlag="已失效";
                        }
                        
                        var tr = '<tr>+<td width="">'+sofaId+'</td><td width="">'+sofaAddress+'</td>'+
                                 '<td width="">'+maxPerson+'</td><td width="">'+useSex+'</td>'+
                                 '<td width="">'+age+'</td><td width="">'+canUseTag+'</td>'+
                                 '<td width="">'+validFlag+'</td><td width="">'+unuesTime+'</td>'+
                                 '<td width=""><input type="button" class="titlebut" onclick="modifySofa(this)" value="编辑" /></td></tr>';
                        var $tr = $(tr);
                        $tr.data("sofaInfo",sofas[i]);
                        $("#sofatablebody").append($tr);
                    }
                    
                }else{
                    alert(result.detial);
                }
            }
        });
    }
    
    //编辑沙发信息
    function modifySofa(tr){
        var sofaInfo = $(tr).parent().parent().data("sofaInfo");
        var canUseTag = sofaInfo.can_use_tag;
        if("不可入住"==canUseTag){
            alert("正在使用中的沙发不可修改信息!");
            return;
        }
        showDiv("modifySofa");
        var address = sofaInfo.sofa_address.split("-");
        $("#sofaname").val(sofaInfo.sofa_title);
        addressInit('Select1', 'Select2', 'Select3',address[0],address[1],address[2]);
        $("#sofaType").val(transSofaType(sofaInfo.sofa_type));
        $("#maxper").val(sofaInfo.person_num);
        $("#sexlim").val(transSex(sofaInfo.use_sex));
        $("#agelim").val(sofaInfo.min_age+"-"+sofaInfo.max_age);
        $("#linkTel").val(sofaInfo.host_phone);
        $("#mail").val(sofaInfo.qq);
        $("#mixday").val(sofaInfo.max_use_time);
        var baseres = sofaInfo.own_goods.split(",");
        for(var i=0;i<baseres.length;i++){
            $(getBasereId(baseres[i])).attr("checked","checked");
        }
        $("#explain").val(sofaInfo.sofa_explain);
        $("#m_sofainfo").data("sofaId",sofaInfo.sofa_id);
    }
    
    //修改沙发信息
    function modifySofaInfo(){
        var sofaId = $("#m_sofainfo").data("sofaId");
        if(null==sofaId||""==sofaId||undefined==sofaId){
            alert("获取沙发信息失败,请刷新页面后重试");
            return;
        }
        var sofaname = $("#sofaname").val().trim();
        var province = $("#Select1").val().trim();
        var city = $("#Select2").val().trim();
        var discrt = $("#Select3").val().trim();
        var sofaAddress = province+"-"+city+"-"+discrt;
        
        var sofaType = $("#sofaType").val().trim();
        var maxper = $("#maxper").val().trim();
        var sexlim = $("#sexlim").val().trim();
        var agelim = $("#agelim").val().trim();
        var linkTel = $("#linkTel").val().trim();
        var mail = $("#mail").val().trim();
        var mixday = $("#mixday").val().trim();
        var baseres = "";
        $('input[name="baseres"]:checked').each(function(){
            baseres=baseres+$(this).val()+",";
        }); 
        var explain = $("#explain").val().trim();
        $.ajax({
                    url:"/SofaGuest/sofa/addSofa.do",
                    type:"post",
                    data:{"sofaId":sofaId,"hostId":acctId,"sofaname":sofaname,
                          "sofaAddress":sofaAddress,"sofaType":sofaType,"maxper":maxper,
                          "sexlim":sexlim,"agelim":agelim,"linkTel":linkTel,"mail":mail,
                          "mixday":mixday,"baseres":baseres,"explain":explain},
                    dataType:"json",
                    success:function(result){
                        if(result.status=="0000"){
                            alert("沙发信息修改成功");
                            qrySofaByHostId();
                        }
                    },
                    error:function(){
                        alert("添加失败,请稍后重试!");
                    }
                });
    }
    
    //修改订单状态
    function modifyOrderStatus(status,tr){
        var $tr = $(tr);
        var orderId = $tr.parent().parent().data("orderId");
        if(orderId==null){
            alert("未获取到订单信息,请刷新重试");
            return;
        }
        $.ajax({
            url:"/SofaGuest/order/modifyOrderStatus.do",
            type:"post",
            data:{"status":status,"orderId":orderId},
            dataType:"json",
            success:function(result){
                alert(result.detial);
                getAllOrder();
            },
            error:function(){
                alert("修改订单状态失败,请稍后重试");
            }
        });
    }
    
    //获取所有订单的信息
    function getAllOrder(){
        showDiv('queryallorder');
        qryAllOrder(acctId,userType);
    }
    
    function to_write() {
        var s = document.getElementById("shade");
        s.style.display = "block";

        var l = document.getElementById("comhtml");
        l.style.display = "block";
    }

    function cancel_write() {
        var s = document.getElementById("shade");
        s.style.display = "none";

        var l = document.getElementById("comhtml");
        l.style.display = "none";
    }
</script>

</head>

<body class="firstpage">
	<div id="shade"></div>
	<div class="top">
		<div class="top-page">
			<div id="nav-title">
				<a href="homePage.html" class="title">首页</a>
            	<a href="Javascript:void(0)" class="title" onclick="gotoqrySofaHtml()">找沙发</a>
                <!-- <a href="qrySofa.html" class="title">找沙发</a> -->
            	<a href="addSofa.html" class="title">我有沙发</a>
            	<a href="travelList.html" class="title">分享沙旅</a>
            	<a href="personMan.html" class="title">个人管理</a>
			</div>
			<div id="loginfo">
				<span>当前登陆：</span>
				<span id="acctId"></span>
				<span><a href="Javascript:void(0)" id="safeout"  target="_self">安全退出</a></span>
			</div>
		</div>
	</div>
	<div class="main-content">
		<div class="main-page">
		<div class="man-page">
			<div class="leftpart">
				<ul class="profile-sidebar">
					<li class="profile-sidebar-section">
						<h2 class="profile-sidebar-sectiontitle">
							<i class="icon-line-home"></i>个人中心</a>
						</h2>
					</li>
					<li class="profile-sidebar-section">
						<h2 class="profile-sidebar-sectiontitle">
							<i class="icon-line-order"></i>订单管理
						</h2>
						<ul>
							<li id="allli"><a class="lia" href="Javascript:void(0)"
								onclick="getAllOrder()">全部订单</a>
							</li>
							<li id="onli"><a class="lia" href="Javascript:void(0)"
								onclick="showDiv('queryonorder')">未完成订单</a>
							</li>
							<li id="endli"><a class="lia" href="Javascript:void(0)"
								onclick="showDiv('queryendorder')">已完成订单</a>
							</li>
                            <li id="endli"><a class="lia" href="Javascript:void(0)"
                                onclick="showDiv('querfailedorder')">失败订单</a>
                            </li>
						</ul>
					</li>
					<!-- 个人用户不显示 -->
					<li class="profile-sidebar-section" id="sofaManager">
						<h2 class="profile-sidebar-sectiontitle">
							<i class="icon-yen"></i>沙发管理
						</h2>
						<ul>
							<li id="queryli"><a  class="lia" href="Javascript:void(0)"
								onclick="qrySofaByHostId()">查看沙发</a>
							</li>
							<li id="addli"><a class="lia" href="addSofa.html">新增沙发</a>
							</li>
						</ul>
					</li>
					<li class="profile-sidebar-section">
						<h2 class="profile-sidebar-sectiontitle">
							<i class=""></i>个人信息
						</h2>
						<ul>
							<li id="infoli"><a class="lia" href="Javascript:void(0)"
								onclick="showDiv('modifyper')">修改信息</a>
							</li>
							<li id="pwdli"><a class="lia" href="Javascript:void(0)"
								onclick="showDiv('modifypwd')">修改密码</a>
							</li>
						</ul></li>
				</ul>
			</div>
			<div class="rightpart">
				<!-- 查询全部订单 -->
				<div id="queryallorder" class="canShow">
                <h3 class="profile-paneltitle">
                <span>全部订单</span> 
                </h3>
                <table class="ordertable" id="ordertale">
                    <thead id="ordertablehead">
                        <tr>
                            <th width="">订单号</th>
                            <th width="">入住人</th>
                            <th width="">联系方式</th>
                            <th width="">预定时间</th>
                            <th width="">离开时间</th>
                            <th width="">状态</th>
                            <th width="">状态原因</th>
                        </tr>
                    </thead>
                    <tbody id="ordertablebody">
                    </tbody>
                </table>
            	</div>
            	<!-- 查询进行中订单 -->
            	<div id="queryonorder" class="canShow">
                <h3 class="profile-paneltitle">
                <span>未完成订单</span> 
                </h3>
                <table class="ordertable" id="ordertale">
                    <thead id="ordertablehead">
                        <tr>
                            <th width="">订单号</th>
                            <th width="">入住人</th>
                            <th width="">联系方式</th>
                            <th width="">预定时间</th>
                            <th width="">离开时间</th>
                            <th width="">状态</th>
                            <th width="">操作</th>
                        </tr>
                    </thead>
                    <tbody id="ordertablebodyon">
                    </tbody>
                </table>
            </div>
            <!-- 已完成订单 -->
            <div id="queryendorder" class="canShow">
                <h3 class="profile-paneltitle">
                <span>已完成订单</span> 
                </h3>
                <table class="ordertable" id="ordertale">
                    <thead id="ordertablehead">
                        <tr>
                            <th width="">订单号</th>
                            <th width="">入住人</th>
                            <th width="">联系方式</th>
                            <th width="">预定时间</th>
                            <th width="">离开时间</th>
                            <th width="">状态</th>
                        </tr>
                    </thead>
                    <tbody id="ordertablebodyend">
                    </tbody>
                </table>
            </div>
            <!-- 失败的订单 -->
            <div id="querfailedorder" class="canShow">
                <h3 class="profile-paneltitle">
                <span>失败订单</span> 
                </h3>
                <table class="ordertable" id="ordertale">
                    <thead id="ordertablehead">
                        <tr>
                            <th width="">订单号</th>
                            <th width="">入住人</th>
                            <th width="">联系方式</th>
                            <th width="">预定时间</th>
                            <th width="">离开时间</th>
                            <th width="">状态</th>
                            <th width="">失败原因</th>
                        </tr>
                    </thead>
                    <tbody id="ordertablebodfailed">
                    </tbody>
                </table>
            </div>
            
            <!-- 查看我的沙发 -->
            <div id="querysofa" class="canShow">
                <table class="sofatable">
                    <thead id="safastablehead">
                    <tr>
                        <th width="">编号</th>
                        <th width="">沙发坐标</th>
                        <th width="">人数限制</th>
                        <th width="">性别限制</th>
                        <th width="">年龄限制</th>
                        <th width="">沙发状态</th>
                        <th width="">信息状态</th>
                        <th width="">失效时间</th>
                        <th width="">操作</th>
                    </tr>
                    </thead>
                    <tbody id="sofatablebody">
                    </tbody>
                </table>
            </div>
            <!-- 修改沙发信息 -->
            <div id="modifySofa" class="canShow">
            	<div id="mod-sofainfo">
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="sofaname">沙发标题:</label></th>
								<td><input type="text" id="sofaname" name="sofaname" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="50" required=""></td>
								</tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="sofaPos">沙发坐标:</label></th>
								<td>
									<select name="province" id="Select1" class="ps" tabindex="1"></select>
									<select name="city" id="Select2" class="ps" tabindex="1"></select>
									<select name="discnt" id="Select3" class="ps" tabindex="1"></select>
									<script type="text/javascript" id="sofaAddress">
										addressInit('Select1', 'Select2', 'Select3');
									</script> 
								</td>
								</tr></tbody></table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="sofaType">沙发类型:</label></th>
								<td>
									<select name="sofaType" id="sofaType" class="ps" tabindex="1">
										<option value="1">睡眠沙发</option>
										<option value="2">空闲床位</option>
										<option value="3">一起睡地板</option>
									</select>
								</td>
								</tr></tbody></table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="maxper">可接待人数:</label></th>
								<td><input type="text" id="maxper" name="maxper" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" required=""></td>
								</tr></tbody></table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="sexlim">性别限制:</label></th>
								<td>
									<select name="sexlim" id="sexlim" class="ps" tabindex="1">
										<option value="1">不限</option>
										<option value="2">男</option>
										<option value="3">女</option>
									</select>
								</td>
								</tr></tbody></table>
					</div>
					<!-- <div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="sofapic">沙发图片:</label></th>
								<td><input type="file" id="sofapic" name="sofapic" class="px er" tabindex="1" autocomplete="off" size="25" ></td>
								</tr></tbody>
						</table>
					</div> -->
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="agelim">年龄限制:</label></th>
								<td><input type="text" id="agelim" name="agelim" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" required=""></td>
								</tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="linkTel">联系方式:</label></th>
								<td><input type="text" id="linkTel" name="linkTel" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" required=""></td>
								</tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="mail">QQ/邮箱:</label></th>
								<td><input type="text" id="mail" name="mail" class="px er" tabindex="1" autocomplete="off" size="25"  required=""></td>
								</tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="mixday">最长可入住时间:</label></th>
								<td><input type="text" id="mixday" name="mixday" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" required=""></td>
								</tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="baseres">可提供:</label></th>
								<td><input type="checkbox" id="baseres1" name="baseres" class="baseres" class="px er" tabindex="1" autocomplete="off" size="25" value="餐饮"/>餐饮</td>
								<td><input type="checkbox" id="baseres2" name="baseres" class="baseres" class="px er" tabindex="1" autocomplete="off" size="25" value="洗浴"/>洗浴</td>
								<td><input type="checkbox" id="baseres3" name="baseres" class="baseres" class="px er" tabindex="1" autocomplete="off" size="25" value="停车"/>停车</td>
								<td><input type="checkbox" id="baseres4" name="baseres" class="baseres" class="px er" tabindex="1" autocomplete="off" size="25" value="WIFI"/>WIFI</td>
								<td><input type="checkbox" id="baseres5" name="baseres" class="baseres" class="px er" tabindex="1" autocomplete="off" size="25" value="空调"/>空调</td>
								<td><input type="checkbox" id="baseres6" name="baseres" class="baseres" class="px er" tabindex="1" autocomplete="off" size="25" value="宠物"/>宠物</td>
								</tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="explain">相关说明:</label></th>
								<td><textarea type="text" id="explain" name="explain" class="px er" tabindex="1" autocomplete="off" ></textarea></td>
								</tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<td><input type="submit" id="m_sofainfo" onclick="modifySofaInfo()" name="modifysofa" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" required="" value="确认修改"></td>
								<!-- <td><input type="submit" id="cancelm" name="cancelm" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" required="" value="取消"></td> -->
								</tr></tbody>
						</table>
					</div>
            	</div>
            </div>
			<!-- 新增沙发选择跳转 -->
			<!-- 修改个人信息 -->
			<div id="modifyper" class="canShow">
                <div id="modify-perinfo">
                	<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="userId">用户名:</label></th>
								<td><input type="text" id="userId" name="userId" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" disabled=""></td>
								</tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="realName">真实姓名:</label></th>
								<td><input type="text" id="realName" name="realName" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" disabled=""></td>
                                </tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="certNum">身份证:</label></th>
								<td><input type="text" id="certNum" name="certNum" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="18"></td>
								<td class="tipcol"><i id="tip_certNum" class="p_tip" style="display: none;">请输入有效证件信息,身份证不得小于18位</i><kbd id="chk_certNum" class="p_chk">身份证不得小于18位</kbd></td>
                                </tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="sex">性别:</label></th>
								<td>
									<select name="sex" id="sex" class="ps" tabindex="1">
										<option value="0">保密</option>
										<option value="1">男</option>
										<option value="2">女</option>
									</select>
								</td>
								</tr></tbody></table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="linkTel">联系方式:</label></th>
								<td><input type="text" id="linkTelModify" name="linkTel" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15"></td>
								<td class="tipcol"><i id="tip_linkTel" class="p_tip" style="display: none;">请输入有效联系方式</i><kbd id="chk_linkTel" class="p_chk">请输入有效联系方式</kbd></td>
                                </tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="mail">QQ/邮箱:</label></th>
								<td><input type="text" id="mailModify" name="mail" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15"></td>
								<td class="tipcol"><i id="tip_mail" class="p_tip" style="display: none;">请输入您的常用QQ/邮箱</i><kbd id="chk_mail" class="p_chk">请输入您的常用QQ/邮箱</kbd></td>
                                </tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<td><input type="submit" id="m_perinfo" name="modifyper" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" required="" value="确认修改"></td>
								<!-- <td><input type="submit" id="cancelm" name="cancelm" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" required="" value="取消"></td> -->
								</tr></tbody>
						</table>
					</div>
                </div>
            </div>
			<!-- 修改密码 -->
			<div id="modifypwd" class="canShow">
                <div id="modify-pwd">
                	<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="opwd">请输入原始密码:</label></th>
								<td><input type="text" id="opwd" name="opwd" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" required=""></td>
								<td class="tipcol"><i id="tip_opwd" class="p_tip" style="display: none;">请填写密码, 最小长度为 6 个字符</i><kbd id="chk_opwd" class="p_chk">请填写密码, 最小长度为 6 个字符</kbd></td>
								</tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="pwd1">请输入新密码:</label></th>
								<td><input type="text" id="pwd1" name="pwd1" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" required=""></td>
								<td class="tipcol"><i id="tip_pwd1" class="p_tip" style="display: none;">请填写密码, 最小长度为 6 个字符</i><kbd id="chk_pwd1" class="p_chk">请填写密码, 最小长度为 6 个字符</kbd></td>
								</tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<th><span class="rq">*</span><label for="pwd2">确认密码:</label></th>
								<td><input type="text" id="pwd2" name="pwd2" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" required=""></td>
								<td class="tipcol"><i id="tip_pwd2" class="p_tip" style="display: none;">请再次输入密码</i><kbd id="chk_pwd2" class="p_chk">请再次输入密码</kbd></td>
								</tr></tbody>
						</table>
					</div>
					<div class="rfm">
						<table>
							<tbody><tr>
								<td><input type="submit" id="m_pwd" name="modifyper" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" required="" value="确认修改"></td>
								<!-- <td><input type="submit" id="cancelm" name="cancelm" class="px er" tabindex="1" autocomplete="off" size="25" maxlength="15" required="" value="取消"></td> -->
								</tr></tbody>
						</table>
					</div>
			</div>
		</div>
		</div>
	</div>
	</div>
	<div class="feet">
		<a href="homePage.html">首页</a><span>|</span>
		<a href="addSofa.html">新增沙发</a><span>|</span>
		<a href="register.html">入驻沙主</a><span>|</span>
		<a href="personMan.html">信息管理</a><span>|</span>
		<a href="adminman.html">后台管理</a><span>|</span>
		<a href="index.html">退出登录</a>
	</div>
	<div id="comhtml">
        <br/>
    	<!-- <span>评论标题：</span><input type="text" id="ndbt"/><br/><br/> -->
    	<span id="ndpj">您的评价：</span><textarea id="content" rows="5" cols="50"></textarea><br/>
    	<input class="combut" type="button" value="完成" id="comcommit"/>
    	<input class="combut" type="button" value="取消" id="cancelbut" onclick="cancel_write()"/>
    </div>
</body>
</html>
